package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.business.domain.PaymentScheduleDetail;
import cn.wolfcode.p2p.business.query.CreditTransferQueryObject;
import cn.wolfcode.p2p.business.query.PaymentScheduleDetailQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentScheduleDetailMapper {

    int insert(PaymentScheduleDetail record);

    PaymentScheduleDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKey(PaymentScheduleDetail record);

    void batchUpdateTransferStateByBidIdAndToLoginInfoId(@Param("bidId") Long bidId, @Param("toLoginInfoId") Long toLoginInfoId, @Param("transferState") int transferState);

    void batchUpdateToLoginInfoIdByBidIdAndTransferFromId(@Param("bidId") Long bidId, @Param("TransFromId") Long TransFromId, @Param("TransToId") Long TransToId);

    List<PaymentScheduleDetail> listAll(Long bidId);

}


